<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link rel="stylesheet" href="<?php echo base_url('publics/admin');?>/style/styles.css" />
<script type="text/javascript" src="<?php echo base_url('publics')?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url('publics')?>/js/na_check.js"></script>
</head>

<body>
<div id="main_right">
	<div id="r_title">
		<div id="r_title_content">
			用户管理 &gt; 修改密码
		</div>
	</div>
	<div class="line_white"></div>
	<div id="r_menu">
		<ul>
			<li><a href="<?php echo site_url('admin');?>">返回列表</a></li>
		</ul>
	</div>
	<div id="r_list">
		<form action="<?php echo site_url('manage/user/change_password');?>" method="post" onsubmit="return na_check_form();">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		   <tr>
			<td width="10%" height="35" align="center">用户名</td>
			<td width="90%"><?php echo $user_name;?></td>
		   </tr>
		   <tr>
			<td width="10%" height="35" align="center">原始密码</td>
			<td width="90%"><input type="password" size="20" name="pass_old" id="pass_old"class="inputs"/></td>
		   </tr>
		   <tr>
			<td width="10%" height="35" align="center">新&nbsp;&nbsp;密&nbsp;&nbsp;码</td>
			<td width="90%"><input type="password" size="20" name="pass_new" id="pass_new"class="inputs"/></td>
		   </tr>
		   <tr>
			<td width="10%" height="35" align="center">确认密码</td>
			<td width="90%"><input type="password" size="20" name="pass_confirom" id="pass_confirom"class="inputs"/></td>
		   </tr>
		   <tr>
				<td width="10%" height="35" align="center">&nbsp;</td>
				<td width="90%"><input type="image" src="<?php echo base_url('publics/admin');?>/images/alter_password_img.png" /></td>
		   </tr>
		</table>
		</form>
	</div>
</div>
</body>
</html>
<script>
function check_form()
{
	var pass_old=$('#pass_old').val();
	if(pass_old.length < 6)
	{
		alert('原始密码不少于6位字符');
		$('#pass_old').focus();
		return false;
	}
	var pass_new=$('#pass_new').val();
	if(pass_new.length < 6)
	{
		alert('新密码不少于6位字符');
		$('#pass_new').focus();
		return false;
	}
	var pass_confirom=$('#pass_confirom').val();
	if(pass_confirom != pass_new)
	{
		alert('两次输入的密码不一致');
		$('#pass_confirom').focus();
		return false;
	}
	return true;
}
</script>